
#include <mockcpp/mockcpp.hpp>
#include <testngpp/testngpp.hpp>
#include <Square.h>

USING_MOCKCPP_NS
USING_TESTNGPP_NS

FIXTURE(TestSquare)
{
	TEST("should be able to get area: area=5*5=25")
	{
		Square square(5);
		ASSERT_EQ(25, square.getArea());
	}

	TEST("should be able to get perimeter: perimeter=5*4=20")
	{
		Square square(5) ;
		ASSERT_EQ(20, square.getPerimeter());
	}
	
	TEST("should be able to set side")
	{
		Square square(5);
		square.setSide(6) ;
		ASSERT_EQ(24, square.getPerimeter());
	}
};
